home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-2.iso / Files II / Prog / S / SpriteWorld 1.0b4.sit / SpriteWorld / Examples / Utils / DialogUtils.h / DialogUtils.h
Encoding:
Text File  |  1994-02-22  |  1.5 KB  |  56 lines  |  [TEXT/KAHL]

  1. ///--------------------------------------------------------------------------------------
  2. //    DialogUtils.h
  3. //
  4. //    Created:    12/16/91 @ 11:37:55 PM
  5. //    By:        Tony Myles
  6. //
  7. //    Copyright © 1991-94, Tony Myles    All rights reserved worldwide.
  8. //
  9. //    Description: prototypes for dialog utility routines
  10. ///--------------------------------------------------------------------------------------
  11.  
  12.  
  13. #ifndef __DIALOGUTILS__
  14. #define __DIALOGUTILS__
  15.  
  16. #ifndef __TYPES__
  17. #include <Types.h>
  18. #endif
  19.  
  20. #ifndef __DIALOGS__
  21. #include <Dialogs.h>
  22. #endif
  23.  
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29.  
  30. Boolean GetDItemHilite(DialogPtr dlgP, short itemNum);
  31. void SetDItemHilite(DialogPtr dlgP, short itemNum, Boolean hilite);
  32.  
  33. void GetDItemText(DialogPtr dlgP, short itemNum, Str255 itemStr);
  34. void SetDItemText(DialogPtr dlgP, short itemNum, Str255 itemStr);
  35.  
  36. void GetDItemCtlTitle(DialogPtr dlgP, short itemNum, Str255 itemStr);
  37. void SetDItemCtlTitle(DialogPtr dlgP, short itemNum, Str255 itemStr);
  38.  
  39. Handle GetDItemHdl(DialogPtr dlgP, short itemNum);
  40. void SetDItemHdl(DialogPtr dlgP, short itemNum, Handle newItemH);
  41.  
  42. void GetDItemRect(DialogPtr dlgP, short itemNum, Rect *itemRect);
  43. void SetDItemRect(DialogPtr dlgP, short itemNum, Rect *newItemRect);
  44.  
  45. void GetDItemType(DialogPtr dlgP, short itemNum, short *itemType);
  46. void SetDItemType(DialogPtr dlgP, short itemNum, short newItemType);
  47.  
  48. void OutlineDefaultButton(DialogPtr dlgP, short itemNum);
  49. void ClickDialogButton(DialogPtr dlgP, short itemNum);
  50.  
  51.  
  52. #ifdef __cplusplus
  53. };
  54. #endif
  55. #endif
  56.